/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

import java.awt.Color;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JLabel;

/**
 *
 * @author zhouzhao
 */
public class BlankArea extends JLabel{
    
    Dimension minSize = new Dimension(100, 50);
    
    public BlankArea(Color color){
        
        setBackground(color);
        setOpaque(true);
        setBorder(BorderFactory.createLineBorder(Color.BLACK));
    }
    
    @Override
    public Dimension getMinimumSize(){
        return minSize;
    }
    
    @Override
    public Dimension getPreferredSize(){
        return minSize;
    }
}
